<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:a4j="http://richfaces.org/a4j"
	template="/pages/templates/templateMain.xhtml">

	<ui:param name="browser_tab_title" value="Edit Address" />
	<ui:param name="page_title" value="Edit address" />

	<ui:define name="content">

		<p:panel>
			<f:facet name="header">
				<h:outputText value="Address Form" />
			</f:facet>

			<h:form id="addressForm">
				<h:panelGrid columns="3">
					<h:outputLabel value="Country:*" />
					<h:inputText value="#{address.country}" id="country">
						<rich:ajaxValidator summary="Invalid Country" event="onblur" />
					</h:inputText>
					<rich:message for="country" />

					<h:outputLabel value="City:*" />
					<h:inputText value="#{address.city}" id="city">
						<rich:ajaxValidator summary="Invalid City" event="onblur" />
					</h:inputText>
					<rich:message for="city" />

					<h:outputLabel value="Zip Code:*" />
					<h:inputText value="#{address.zipCode}" id="zipCode">
						<rich:ajaxValidator summary="Invalid Zip Code" event="onblur" />
					</h:inputText>
					<rich:message for="zipCode" />

					<h:outputLabel value="Street:*" />
					<h:inputText value="#{address.street}" id="street">
						<rich:ajaxValidator summary="Invalid Street" event="onblur" />
					</h:inputText>
					<rich:message for="street" />

					<h:outputLabel value="Street Number:*" />
					<h:inputText value="#{address.streetNumber}" id="streetNumber">
						<rich:ajaxValidator summary="Invalid Street Number" event="onblur" />
					</h:inputText>
					<rich:message for="streetNumber" />

					<h:outputLabel value="Additional Info:" />
					<h:inputText value="#{address.additionalInfo}" id="additionalInfo" />
				</h:panelGrid>

				<br />
				<h:outputLabel value="* required fields." />
				<br />
				<br />
				<p:commandButton value="Cancel" action="cancel" immediate="true"
					ajax="false" />
				<p:commandButton value="Next" action="next" ajax="false" />
				<p:commandButton value="Finish" action="finish" ajax="false" />
			</h:form>
		</p:panel>

	</ui:define>
</ui:composition>